package com.dailyblue.java.cloud.customer.service;

import com.dailyblue.java.cloud.commons.util.JsonResult;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@Service
public class RibbonService {
    @Resource
    private RestTemplate restTemplate;

    public JsonResult a() {
        String uri = "http://example-provider/provider/a";
        return restTemplate.getForObject(uri, JsonResult.class);
    }
}
